home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch23 / 23fig01.wrl < prev    next >
Text File  |  1996-09-23  |  1KB  |  55 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Ambient lighting
  8.         DirectionalLight {
  9.             direction 0.0 -1.0 -1.0
  10.             intensity 0.2
  11.             ambientIntensity 1.0
  12.         },
  13.     # Floor
  14.         Shape {
  15.             appearance Appearance {
  16.                 material Material {
  17.                     ambientIntensity 0.5
  18.                     diffuseColor 0.2 0.8 0.2
  19.                 }
  20.             }
  21.             geometry Box { size 50.0 0.01 50.0 }
  22.         },
  23.     # Pair of columns
  24.         DEF ColumnPair Group {
  25.             children [
  26.                 Transform {
  27.                     translation -4.0 3.0 0.0
  28.                     children DEF Column Shape {
  29.                         appearance Appearance {
  30.                             material Material {
  31.                                 diffuseColor 1.0 0.8 0.5
  32.                             }
  33.                         }
  34.                         geometry Cylinder {
  35.                             radius 0.3
  36.                             height 6.0
  37.                         }
  38.                     }
  39.                 },
  40.                 Transform {
  41.                     translation 4.0 3.0 0.0
  42.                     children USE Column
  43.                 }
  44.             ]
  45.         },
  46.     # Several more pairs of columns
  47.         Transform { translation 0.0 0.0  -8.0  children USE ColumnPair },
  48.         Transform { translation 0.0 0.0   8.0  children USE ColumnPair },
  49.         Transform { translation 0.0 0.0 -16.0  children USE ColumnPair },
  50.         Transform { translation 0.0 0.0  16.0  children USE ColumnPair },
  51.         Transform { translation 0.0 0.0 -24.0  children USE ColumnPair },
  52.         Transform { translation 0.0 0.0  24.0  children USE ColumnPair },
  53.     ]
  54. }
  55.